print("-----------------------循环-------------------------------")

print("-----------------------for-------------------------------")
names=['F35','mige','beidou']
for name in names:
    print(name)
print("------------------------------------------------------")
sum=0
for x in [1,2,3,4,5,6,7,8]:
    sum=sum+x
print(sum)

print("------------------------------------------------------")
sum=0
for x in range(9):#range(101)就可以生成0-8小于9的整数序列，计算如下
    sum=sum+x
print(sum)
print("-----------------------while-------------------------------")
sum=0
n=99
while n>0:
    sum=sum+n
    n=n-2
print(sum)

print("-----------------------break-------------------------------")
n=1
while n<=100:
    print(n)
    if n>10:#n=11退出循环
        break
    n=n+1
print('END')
print("-----------------------continue-------------------------------")
n=1
while n<=100:
    n=n+1
    if n%2==0:
        continue
    print(n)
print('END')